put FilePath("APPL", "Choose an application please.") into fileName
if fileName = empty then exit mouseUp
put ApplSize(fileName, "nodialog:errGlobal") into sizes
if errGlobal Γëá empty then
answer "Error: ΓÇ£" & errGlobal & "ΓÇ¥"
put empty into errGlobal
else
answer "The application ΓÇ£" & fileName & "ΓÇ¥ is currently set" && "to use" && item 1 of sizes div 1024 & "K, and requires" && "at least" && item 2 of sizes div 1024 & "K."
end if
end mouseUp
-- part contents for background part 20
----- text -----
XFCN to return the suggested memory size (in bytes) of the application specified by pathName. It returns a comma delimited list with the current size setting in item 1, and the minimum size setting in item 2.
Note: Occasionally, you will get a value for the minimum size that differs from the Finder's Get Info window. This is because we are reading the true "Minimum" value set by the application and not the "Suggested" value, which is what the Finder uses.
-- part contents for background part 38
----- text -----
4/50
-- part contents for background part 42
----- text -----
{ ApplSize(Pathname) }
{ XFCN to return the suggested memory size of the }
{ application specified by pathName. Looks for current size }
{ setting or returns minimum size currently set. For some }
{ reason, the minimum memory value is not always correct. }
{ }
{}
{}
{ Written by: Anup Murarka Eric Carlson }
{ ALINK: SKEPTIC ALINK: cyNic }
{ CIS: 76004,3356}
{}
{ We are part of the Support Tools Development Group, }
{ Apple Computer, Inc. }
{}
{ please DO NOT contack Mac DTS for support of this code! }
{}
{ please DO contact the authors for support of this code! }
{}
{ Send comments, bug reports, requests to any of the above }
{ E-mail addresses or to: }
{}
{ (one of us) }
{ Apple Computer, Inc. }
{ 900 E. Hamilton, Ave. }
{ Campbell, CA 95008 }
{ M/S 72-L }
{}
{ Copyright: © 1989, 1990 by Apple Computer, Inc., all rights reserved. }